package org.a009;

import java.util.concurrent.TimeUnit;

public class T {
	synchronized void m1() throws InterruptedException{
		System.out.println("m1 start");
		TimeUnit.SECONDS.sleep(1);
		m2();
	}
	synchronized void m2() throws InterruptedException{
		TimeUnit.SECONDS.sleep(2);
		System.out.println("m2");
	}
	public static void main(String[] args) throws InterruptedException {
		new T().m1();
	}
}
